#ifndef MTEXTURE_HPP
#define MTEXTURE_HPP

#include <string>
#include <SDL2/SDL_image.h>

namespace MA {

class Texture {

public:
    Texture();
    Texture(SDL_Renderer* renderer, std::string file);
	~Texture();

    void loadImage(SDL_Renderer* renderer, std::string file);
	const SDL_Texture* getTexPtr();

    void draw(SDL_Renderer* renderer, const SDL_Rect* srcArea, const SDL_Rect* dstArea);

private:
//	SDL_Renderer* m_renderer;
	SDL_Texture* m_texture;

	int m_width;
	int m_height;
};

}
#endif // MTEXTURE_HPP
